﻿using System.Data.Entity;
using AVCare.LMS.Util;
using AVCare.LMS.Models;

namespace AVCare.LMS.LocalData
{
    public class LMSEntities : DbContext
    {
        public LMSEntities()
            : base(SystemConfigurationManager.ConnectionString)
        {
            Configuration.LazyLoadingEnabled = false;
        }

        public DbSet<Daily> Dailies { get; set; }
        public DbSet<DailyDetail> DailyDetails { get; set; }
        
        public DbSet<User> Users { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<UserRole> UserRoles { get; set; }
        public DbSet<RoleFunction> RoleFunction { get; set; }
        public DbSet<Function> Functions { get; set; }

        public DbSet<File> Files { get; set; }
        public DbSet<Folder> Folders { get; set; }
        public DbSet<SharedFolder> SharedFloders { get; set; }
        public DbSet<ShareUser> ShareUsers { get; set; }

    }
}